package com.wjs.blog.service;

import com.wjs.blog.dao.pojo.SysUser;
import com.wjs.blog.vo.Result;
import com.wjs.blog.vo.parms.LoginParms;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface LoginService {
    /**
     * 登录功能
     * @param loginParms
     * @return
     */
    Result login(LoginParms loginParms);

    SysUser checktoken(String token);

    /**
     * 退出登录
     * @param token
     * @return
     */
    Result loginout(String token);

    Result register(LoginParms loginParms);
}
